﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace welding.Model
{
    public class CheckInDataClass : CommunicationClass
    {
        private string barcode;

        private string config;

        private List<ProductConfigWithItemContent> productConfigs;

        private string workOrder;

        //private string cncID;
        //private string timeLowLimit;
        //private string timeUpLimit;
        //private int barcodenum;
        //private string barcodeCode;
        //private string barcodeName;
        //private string mat;
        //private int matNum;
        ////private string partType;
        //private bool isSemiProduct;         //是加工半成品吗？还是加工成品
        //private string tableName;           //存贮数据的表是maintable还是semiproduct
        //private string productConfig;       //产品配置，也是之前的parttype
        ////是需要查询条码存在吗？如果是，那么条码存在就是OK，不存在就是NG。
        //private bool isCheckingBarcodeExist;
        ///// <summary>
        ///// 是否验证 maintable / semiproduct 中的 parttype 与 productconfig 一致
        ///// ="1" - 需要验证
        ///// =其它 - 不需要验证
        ///// </summary>
        //private string isVerifyPartTypeInMaintable;

        //public string CncID { get => cncID; set => cncID = value; }
        public string Barcode { get => barcode; set => barcode = value; }
        public string Config { get => config; set => config = value; }
        public string WorkOrder { get => workOrder; set => workOrder = value; }
        public List<ProductConfigWithItemContent> ProductConfigs { get => productConfigs; set => productConfigs = value; }
        //public string TimeLowLimit { get => timeLowLimit; set => timeLowLimit = value; }
        //public string TimeUpLimit { get => timeUpLimit; set => timeUpLimit = value; }
        //public int Barcodenum { get => barcodenum; set => barcodenum = value; }
        //public string BarcodeCode { get => barcodeCode; set => barcodeCode = value; }
        //public string BarcodeName { get => barcodeName; set => barcodeName = value; }
        //public string Mat { get => mat; set => mat = value; }
        //public int MatNum { get => matNum; set => matNum = value; }
        ////public string PartType { get => partType; set => partType = value; }
        //public bool IsSemiProduct { get => isSemiProduct; set => isSemiProduct = value; }
        //public string TableName { get => tableName; set => tableName = value; }
        //public bool IsCheckingBarcodeExist { get => isCheckingBarcodeExist; set => isCheckingBarcodeExist = value; }
        //public string ProductConfig { get => productConfig; set => productConfig = value; }
        //public string DeviceId { get => deviceId; set => deviceId = value; }
        //public string IsVerifyPartTypeInMaintable { get => isVerifyPartTypeInMaintable; set => isVerifyPartTypeInMaintable = value; }
    }
}
